import request from '@/utils/request';
import qs from 'qs';
// 人员管理
// 查询
export function getPersonList(query) {
  return request({
    url: '/scheduling/personnel/queryPersonnel',
    method: 'GET',
    params: query
  });
}
// 新增人员信息
export function addPerson(query) {
  return request({
    url: '/scheduling/personnel/addPersonnel',
    method: 'POST',
    data: query
  });
}
// 更新人员信息
export function updatePerson(query) {
  return request({
    url: '/scheduling/personnel/modifyPersonnel',
    method: 'POST',
    data: query
  });
}
// 删除人员信息
export function delPerson(query) {
  return request({
    url: '/scheduling/personnel/deletePersonnel',
    method: 'POST',
    data: query
  });
}
// 人员关系级联
export function getPersonnelGroup(query) {
  return request({
    url: '/scheduling/personnel/addPeopleCascadeRelationship',
    method: 'GET',
    params: query
  });
}
// 人员管理-集团-组织-级联
export function getPersonnelGroupAndOrg(query) {
  return request({
    url: '/scheduling/personnel/queryPersonnelGroupAndOrg',
    method: 'POST',
    data: query
  });
}
